﻿Public Class CategoriesBUS
    Private categorydao As New CategoriesDAO()
    Public Function Categories_List() As DataSet
        Return categorydao.Categories_List()
    End Function

    Public Function Categories_Delete(ByVal CategoryID As Integer) As Boolean
        Return categorydao.Categories_Delete(CategoryID)
    End Function

    Public Function Categories_Select(ByVal ItemID As Integer) As DataSet
        Return categorydao.Categories_Select(ItemID)
    End Function

    Public Function Categories_Insert(ByVal CategoryName As String, _
                                      ByVal Description As String, _
                                      ByVal ModifiedOn As Date, _
                                      ByVal ModifiedBy As String, _
                                      ByVal CreatedOn As Date, _
                                      ByVal CreatedBy As String, _
                                      ByVal RowDelete As Boolean) As Boolean
        Return categorydao.Categories_Insert(CategoryName, Description, ModifiedOn, ModifiedBy, CreatedOn, CreatedBy, RowDelete)
    End Function

    Public Function Categories_Update(ByVal CategoryID As Integer, _
                                      ByVal CategoryName As String, _
                                      ByVal Description As String, _
                                      ByVal ModifiedOn As Date, _
                                      ByVal ModifiedBy As String, _
                                      ByVal CreatedOn As Date, _
                                      ByVal CreatedBy As String, _
                                      ByVal RowDelete As Boolean) As Boolean
        Return categorydao.Categories_Update(CategoryID, CategoryName, Description, ModifiedOn, ModifiedBy, CreatedOn, CreatedBy, RowDelete)

    End Function



End Class
